# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy
class Book(scrapy.Item):
    id = scrapy.Field()
    name=scrapy.Field()             #书的名称
    book_type = scrapy.Field()      #书的分类
    sequence = scrapy.Field()       #排序
    is_active = scrapy.Field()      #1、启动 0、禁用
    add_time = scrapy.Field()       #添加时间
    cover_img = scrapy.Field()      #封面图片
    author= scrapy.Field()          #作者名称
    update_time = scrapy.Field()        #最新更新时间
    desc = scrapy.Field()           #简介
    last_chapterid = scrapy.Field() #最后更新章节ID
    last_chapter = scrapy.Field() #最后更新章节名称
    user_id = scrapy.Field()    #添加用户
    third_book_id = scrapy.Field() #第三方书ID

class Chapter(scrapy.Item):
    id = scrapy.Field()
    book_id = scrapy.Field()
    name = scrapy.Field()
    level_id = scrapy.Field()
    paths = scrapy.Field()
    parent_id = scrapy.Field()
    order_num = scrapy.Field()
    add_time=scrapy.Field()
    user_id = scrapy.Field()
    size = scrapy.Field()
    sale_price = scrapy.Field()
    sale_num = scrapy.Field()
    third_chapter_id = scrapy.Field()

class Article(scrapy.Item):
    id = scrapy.Field()
    chapter_id = scrapy.Field()
    user_id = scrapy.Field()
    content = scrapy.Field()
    book_id = scrapy.Field()

